/*
 * 306A.cpp
 *
 *  Created on: May 27, 2013
 *      Author: luonghoaixuan
 */
#include <iostream>
using namespace std;
int n, m;

void solve() {
	cin >> n >> m;
	int each = n / m;
	int rem = n % m;
	while (m > 0) {
		if (rem > 0) {
			cout << each + 1;
			rem--;
		}
		else {
			cout << each;
		}
		if (m > 1) {
			cout << " ";
		}
		else {
			cout << endl;
		}
		m--;
	}
}

int main() {
	solve();
	return 0;
}
